class Solution:
    def firstUniqChar(self, s: str) -> int:
        Hash = {}
        for i in s:
            Hash[i] = Hash.get(i, 0) + 1

        for key in Hash.keys():
            if Hash[key] == 1:
                return s.find(key)

        return -1

